<%@ page contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@taglib uri="/WEB-INF/tld/importTag.tld" prefix="importTag"%>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="hostName" value='<%=request.getServerName()%>'/>
<c-rt:set var="frontHtmlPath" value='<%=ServerValue.getFrontApachePath()%>'/>
<c-rt:set var="version" value='<%=ServerValue.getVersion()%>'/>
<%
	response.setHeader("Pragma","No-Cache");  
	response.setHeader("Cache-Control","No-Cache");  
	response.setDateHeader("Expires",   0);   
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="zh-CN" lang="zh-CN">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
		<meta http-equiv="description" content="${pageDescription}" />
		<meta http-equiv="keywords" content="${pageKeywords}" />
		<meta http-equiv="pragma" content="no-cache"/>
		<meta http-equiv="cache-control" content="no-cache"/>
		<meta http-equiv="expires" content="0"/>    
		<title>
			${pageTitle}
			<tiles:insertAttribute name="commonTitle" ignore="true" />
		</title>
		<link rel="stylesheet" href="/css/jquery-ui-1.7.2.custom.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="/css/yaodian100_footer_v3.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="/css/yaodian100_header_v5.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="/css/yaodian100_pages_v2.css" type="text/css" media="screen" />		
		<script type="text/javascript" charset="UTF-8" src="/js/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" charset="UTF-8" src="/js/jquery.bgiframe.min.js"></script>
		<script type="text/javascript" charset="UTF-8" src="/js/jquery-ui-1.7.2.custom.min.js"></script>
		<script type="text/javascript" src="/js/pageable.js"></script>
		<script type="text/javascript" src="/js/jquery.autocomplete.min.js"></script>
		<script type="text/javascript" charset="UTF-8" src="/js/onchangeTab_v2.js"></script>
		<script type="text/javascript" src="http://partner.googleadservices.com/gampad/google_service.js"></script>
		<script type="text/javascript">
			var tvpvar = "zId=${category.id}";
		</script>
		<c-rt:if test="${fn:endsWith(hostName, 'yaodian100.com')}">
			<script type="text/javascript">
			  GS_googleAddAdSenseService("ca-pub-9592829756492568");
			  GS_googleEnableAllServices();
			</script>
			<script type="text/javascript">
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_upper_image_01");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_select_image_01");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_select_image_02");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_select_image_03");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_twinsnew_image_01");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_twinsnew_image_02");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_sidebar_right_image_01");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_sidebar_right_image_02");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_sidebar_right_image_03");
				GA_googleAddSlot("ca-pub-9592829756492568","yd100_${tempZId}_lr_image_01");
			</script>
			<script type="text/javascript">
			  GA_googleFetchAds();
			</script>
		</c-rt:if>
	</head>
	<body>
		<div id="container">
			<c-rt:if test="${!fn:endsWith(hostName, 'yaodian100.com')}">
				<importTag:static path="${frontHtmlPath}${hostName}/pages/header/customTop.html"/>
			</c-rt:if>
			<importTag:static path="${frontHtmlPath}/pages/header/${hostName}_header.html"/>
			<div id="header">
				<tiles:insertAttribute name="topbar" ignore="true" />
				<tiles:insertAttribute name="logobar" ignore="true" />
				<c-rt:if test="${version eq 'v5'}">
					<tiles:insertAttribute name="top4tag" ignore="true" />
				</c-rt:if>
				<tiles:insertAttribute name="categorynav" ignore="true" />
				<tiles:insertAttribute name="searchbar" ignore="true" />
			</div>
			<tiles:insertAttribute name="positionnav" ignore="true" />
			<div id="main" class="${category.templateId}">
				<tiles:insertAttribute name="content" ignore="true" />
			</div>
			<div id="helpfooter">
				<importTag:static path="${frontHtmlPath}${hostName}/pages/footer/helpfooter.html"/>
			</div>
			<div id="footer_family">
				<importTag:static path="${frontHtmlPath}${hostName}/pages/footer/footer_family.html"/>
			</div>
			<div id="footer">
				<importTag:static path="${frontHtmlPath}${hostName}/pages/footer/footer.html"/>
			</div>	
			<c-rt:if test="${!fn:endsWith(hostName, 'yaodian100.com')}">
				<importTag:static path="${frontHtmlPath}${hostName}/pages/footer/customBottom.html"/>
			</c-rt:if>
			<importTag:static path="${frontHtmlPath}/pages/footer/${hostName}_footer.html"/>		
		</div>
		<c-rt:if test="${ not empty category.categoryPath}"><div style='display:none'><a href='http://www.web0800.com/'>在線客服</a></div><script id='HJLiveChatPageScript' type="text/javascript" src="/js/${fn:split(category.categoryPath, '/')[0]}.js"></script><div style='display:none'><a href='http://www.web0800.com/'>網站客服</a></div></c-rt:if>
	</body>
</html>